package com.lucweb.service.impl;

import com.lucweb.dao.GzDao;
import com.lucweb.entity.TaskGz;
import com.lucweb.service.GzService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("gzService")
public class GzServiceImpl implements GzService {
    @Resource
    private GzDao gzDao;


    @Override
    public String newGzTask() {

        return null;
    }

    @Override
    public void saveOrUpdate(TaskGz taskGz) {
        gzDao.saveOrUpdate(taskGz);

    }

    @Override
    public TaskGz gettaskGzById(int taskId) {
        return this.gzDao.getGzById(taskId);
    }

    @Override
    public boolean deleteGztask(int taskId) {
        gzDao.deleteGz(taskId);
        return true;
    }

    @Override
    public List<TaskGz> showGz() {
        return this.gzDao.showGz();
    }

    @Override
    public int getmaxId() {
        return this.gzDao.getmaxId();
    }
}
